const net = require('net')

const server = net.createServer()

server.listen(9876, 'localhost')

server.on('connection', (socket) => {
    socket.on('data', (buffer) => {
        console.log(buffer.toString())
    })

    socket.write("Hello, I'm Server!")
})
